<?php
/**
 * True Gallery Install Back-End Router
 *
 * @version 1.0
 * @author Alexey N. Brin (userxp@joomlaportal.ru)
 * @filename install.php
 * @package True Gallery
 * @copyright (C) 2008-2009 by joomlatune.ru
 * @license GNU/GPL: http://www.gnu.org/copyleft/gpl.html
 * 
 * If you fork this to create your own project, 
 * please make a reference to True Gallery someplace in your code 
 * and provide a link to http://www.joomlatune.ru
 *
 **/

defined('_VALID_MOS') or defined('_JEXEC') or die('Direct Access to this location is not allowed.');

class JTrueInstallRouterAdmin extends JoomlaTuneRouter
{
	function _default() {
		//JTuneRouter::_( TRUE_INDEX2.'&view=pictures&task=show' );
		JTuneRouter::_( TRUE_INDEX2.'&view=pictures' );
	}
	
	function _endRoute() {
		if( TG_AJAX ) {
			JTuneConfig::close();
		}
	}
	
} //JTrueInstallRouterAdmin

class JTrueInstallRouterSite extends JoomlaTuneRouter
{
	function _default() {
		$path = JRoute::_( 'index.php?option='.TG_CMP.'&view=categories', false );
		JTuneRouter::_( $path );
	} //_default
	
	
	function _endRoute() {
		if( TG_AJAX ) {
			JTuneConfig::close();
		}
	}
	
} //JTrueInstallRouterSite
?>
